﻿@using Ext.Net
@using Ext.Net.MVC
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.8.3.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/extjs-utils.js")" type="text/javascript"></script>
    @RenderSection("Header", false)
</head>
<body>
    <div class="page" style="padding: 1px">
        @Html.X().ResourceManager().Theme(Theme.Default)
        <div runat="server" id="ToolbarContainer" class="noprint">
            @Html.X().Toolbar().StyleSpec("position: fixed; z-index: 10;width: 100%;").Items(
                Html.X().Container().Layout(LayoutType.HBox).ItemsFromSection(this, "ToolbarSection"),
                Html.X().ToolbarFill(),
                Html.X().ButtonGroup().Items(
                    Html.X().Button().Text("Help").Icon(Icon.Help).Listeners(ls => ls.Click.Handler = "#{wHelp}.show();"),
                    Html.X().Button().Text("Reload").Icon(Icon.ArrowRefresh).Listeners(ls => ls.Click.Handler = "window.location.reload();"),
                    Html.X().Button().Text("Expand").Icon(Icon.TabGo).Listeners(ls => ls.Click.Handler = "window.open(window.location.href);")
                    )
           )
            <div style="width: 100%; height: 35px">
            </div>
        </div>
        <section id="main1">
            @RenderBody()
        </section>
    </div>
</body>
</html>
